﻿using System.Linq;
using XRM.Security.DataAccess.Models;

namespace XRM.Security.DataAccess.Repositories.Impl
{
    public class UserInfoSystemRepository : BaseRepository<UserInfoSystem>
    {
        public IQueryable<InfoSystem> GetByUserId(int userId)
        {
            return GetAll( s => s.UserRegisterId == userId && s.RevokeDate == null ).Select( s => s.InfoSystem );
        }
    }
}
